<?php

class ExpLevel
{

    # Next Level Need Exp   /*{{{*/
    public static $levelNeedExp =   array(
				1   =>  50,
				2   =>  100,
				3   =>  150,
				4   =>  200,
				5   =>  250,
				6   =>  300,
				7   =>  350,
				8   =>  400,
				9   =>  450,
				10  =>  500,
				11  =>  600,
				12  =>  700,
				13  =>  800,
				14  =>  900,
				15  =>  1000,
				16  =>  1100,
				17  =>  1200,
				18  =>  1300,
				19  =>  1400,
				20  =>  1500,
				21  =>  1700,
				22  =>  1900,
				23  =>  2100,
				24  =>  2300,
				25  =>  2500,
				26  =>  2700,
				27  =>  2900,
				28  =>  3100,
				29  =>  3300,
				30  =>  3500,
				31  =>  3800,
				32  =>  4100,
				33  =>  4400,
				34  =>  4700,
				35  =>  5000,
				36  =>  5300,
				37  =>  5600,
				38  =>  5900,
				39  =>  6200,
				40  =>  6500,
				41  =>  6900,
				42  =>  7300,
				43  =>  7700,
				44  =>  8100,
				45  =>  8500,
				46  =>  8900,
				47  =>  9300,
				48  =>  9700,
				49  =>  10100,
				50  =>  10500,
				51  =>  11000,
				52  =>  11500,
				53  =>  12000,
				54  =>  12500,
				55  =>  13000,
				56  =>  13500,
				57  =>  14000,
				58  =>  14500,
				59  =>  15000,
				60  =>  16000,
				61  =>  17000,
				62  =>  18000,
				63  =>  19000,
				64  =>  20000,
				65  =>  21000,
				66  =>  22500,
				67  =>  24000,
				68  =>  26000,
				69  =>  28000,
				70  =>  30000,
				71  =>  32000,
				72  =>  34500,
				73  =>  37000,
				74  =>  39500,
				75  =>  42000,
				76  =>  45000,
				77  =>  48000,
				78  =>  51000,
				79  =>  54000,
				80  =>  57000,
				81  =>  60000,
				82  =>  63500,
				83  =>  67000,
				84  =>  70500,
				85  =>  74000,
				86  =>  77500,
				87  =>  81000,
				88  =>  85000,
				89  =>  89000,
				90  =>  93000,
				91  =>  97000,
				92  =>  101000,
				93  =>  105000,
				94  =>  109500,
				95  =>  114000,
				96  =>  118500,
				97  =>  123000,
				98  =>  128000,
				98  =>  133000,
				100  =>  138000,
                                    );/*}}}*/

    # Level Map Follow nums /*{{{*/
    public static $levelMapFollow   =   array(
				5   =>  50,
				6   =>  70,
				7   =>  90, 
				8   =>  110, 
				9   =>  130, 
				10   =>  150, 
				11   =>  170, 
				12   =>  190, 
				13   =>  210, 
				14   =>  230, 
				15   =>  250, 
				16   =>  270, 
				17   =>  290, 
				18   =>  310, 
				19   =>  330, 
				20   =>  350, 
				21   =>  400,
				22   =>  450,
				23   =>  500,
				24   =>  550,
				25   =>  600,
				26   =>  650,
				27   =>  700,
				28   =>  750,
				29   =>  800,
				30   =>  850,
				31   =>  900,
				32   =>  950,
				33   =>  1000,
				34   =>  1050,
				35   =>  1100,
				36   =>  1150,
				37   =>  1200,
				38   =>  1250,
				39   =>  1300,
				40   =>  1350,
				41   =>  1400,
				42   =>  1450,
				43   =>  1500,
				44   =>  1550,
				45   =>  1600,
				46   =>  1650,
				47   =>  1700,
				48   =>  1750,
				49   =>  1800,
				50   =>  1850,
				51   =>  1900,
				52   =>  1950,
				53   =>  2000,
				54   =>  2050,
				55   =>  2100,
				56   =>  2150,
				57   =>  2200,
				58   =>  2250,
				59   =>  2300,
				60   =>  2350,
				61  =>  2400,
				62  =>  2500,
				63  =>  2600,
				64  =>  2700,
				65  =>  2800,
				66  =>  2900,
				67  =>  3000,
				68  =>  3100,
				69  =>  3200,
				70  =>  3300,
				71  =>  3400,
				72  =>  3500,
				73  =>  3600,
				74  =>  3700,
				75  =>  3800,
				76  =>  3900,
				77  =>  4000,
				78  =>  4100,
				79  =>  4200,
				80  =>  4300,
				81  =>  4400,
				82  =>  4500,
				83  =>  4600,
				84  =>  4700,
				85  =>  4800,
				86  =>  4900,
				87  =>  5000,
				88  =>  5100,
				89  =>  5200,
				90  =>  5300,
				91  =>  5400,
				92  =>  5500,
				93  =>  5600,
				94  =>  5700,
				95  =>  5800,
				96  =>  5900,
				97  =>  6000,
				98  =>  6200,
				98  =>  6400,
				100  =>  6600,
                                        );/*}}}*/

    # Level Map Flow quantity  流量/*{{{*/
    public static $levelMapFlow =   array(
				5   =>  62,
				6   =>  62,
				7   =>  62,
				8   =>  66,
				9   =>  66,
				10  =>  66,
				11  =>  72,
				12  =>  72,
				13  =>  72,
				14  =>  82,
				15  =>  82,
				16  =>  82,
				17  =>  96,
				18  =>  96,
				19  =>  96,
				20  =>  114,
				21  =>  114,
				22  =>  114,
				23  =>  138,
				24  =>  138,
				25  =>  170,
				26  =>  170,
				27  =>  170,
				28  =>  170,
				29  =>  170,
				30  =>  200,
				31  =>  200,
				32  =>  200,
				33  =>  200,
				34  =>  200,
				35  =>  200,
				36  =>  200,
				37  =>  200,
				38  =>  200,
				39  =>  200,
				40  =>  200,
				41   =>  200, 
				42   =>  200, 
				43   =>  200, 
				44   =>  200, 
				45   =>  200, 
				46   =>  200, 
				47   =>  200, 
				48   =>  200, 
				49   =>  200, 
				50   =>  200, 
				51   =>  200, 
				52   =>  200, 
				53   =>  200, 
				54   =>  200, 
				55   =>  200, 
				56   =>  200, 
				57   =>  200, 
				58   =>  200, 
				59   =>  200, 
				60   =>  215,
				61  =>  215,
				62  =>  215,
				63  =>  215,
				64  =>  215,
				65  =>  220,
				66  =>  220,
				67  =>  220,
				68  =>  220,
				69  =>  220,
				70  =>  230,
				71  =>  230,
				72  =>  230,
				73  =>  230,
				74  =>  230,
				75  =>  240,
				76  =>  240,
				77  =>  240,
				78  =>  240,
				79  =>  240,
				80  =>  250,
				81  =>  250,
				82  =>  250,
				83  =>  250,
				84  =>  250,
				85  =>  250,
				86  =>  250,
				87  =>  250,
				88  =>  250,
				89  =>  250,
				90  =>  260,
				91  =>  260,
				92  =>  260,
				93  =>  260,
				94  =>  260,
				95  =>  280,
				96  =>  280,
				97  =>  280,
				98  =>  280,
				98  =>  280,
				100  =>  350,
                                    );/*}}}*/
    # Level Map Flow add /*{{{*/
    public static $levelAddFlow =   array(
                                5   =>  2,
                                8   =>  4,
                                11  =>  6,
                                14  =>  10,
                                17  =>  14,
                                20  =>  18,
                                23  =>  24,
                                25  =>  30,
                                30  =>  30,
                                    );/*}}}*/

    # Group Level Member limit /*{{{*/
    public static $grouplevelAddLimit =   array(
                                1   =>  30,
                                2   =>  50,
                                3   =>  100,
                                4   =>  150,
                                5   =>  200,
                                    );/*}}}*/

    /**
     * 调用方式
     * 1.用户自己操作:
     * 	Controller中调用,如删除日记减少经验则:
     *    AC::$userExpAction['action'] = "deleteDiary";
     * 
     * 2.管理员操作:
     * 	Controller中调用,如管理员删除用户违规日记减少经验则:
     *    AC::$userExpAction['action'] = "deleteDiary"; //类型
     *    AC::$userExpAction['admin'] = TRUE; //管理员操作标记
     *    AC::$userExpAction['userid'] = 4040400; //被操作用户
     * 
     */
    
    # Type Gain Exp /Times  /*{{{*/
    public static $typeGainExp  =   array(
                                        'diaryTimes'    => 10,
                                        'commentTimes'  =>  2,
                                        'likeTimes'     =>  1,
                                        'likedTimes'    =>  1,
                                        'diaryTagTimes' =>  3,
                                        'addTopicTimes' =>  5,
                                        'postTopicCommentTimes' => 2,
                                        'repostTimes'   =>  2,
                                        'repostedTimes' =>  1,
                                        'privateDiary' =>  -10,
                                        'deleteDiary' =>   -10,
                                        'deleteDiaryByadmin' =>   -20,
                                        'deleteCommentByadmin' =>   -10,
                                        'deleteTopic' =>   -5, // 话题被用户自己删除
                                        'deleteTopicByadmin' =>   -10, // 话题被管理员删除
                                        'deleteTopicCommentByadmin' =>   -5, // 话题评论被管理员删除
                                        'essenceTopicByadmin' =>   20, // 话题被管理员设为精华
                                        'forbidUser' =>   -0.5, // 被封禁减少50%经验
                                        'gagUser1' =>   -100, // 第1次禁言
                                        'gagUser2' =>   -500, // 第2次禁言
                                        'gagUser3' =>   -10000, // 第3次禁言
                                    );/*}}}*/

    # Type Gain Exp Times /Day  /*{{{*/
    public static $typeGainTimes=   array(
                                        'diaryTimes'    =>  5,      #   writeDiary + shareDiary
                                        'commentTimes'  =>  20,      #   postComment
                                        'likeTimes'     =>  10,      #   postLike
                                        'likedTimes'    =>  20,     #   postLike
                                        'diaryTagTimes' =>  2,      #   diaryTag
                                        'addTopicTimes' =>  10,      #   addGroup
                                        'postTopicCommentTimes' => 20,   #  postGroupComment
                                        'repostTimes'   =>  5,      #  转发
                                        'repostedTimes' =>  20,     #  被转发
                                        'privateDiary' =>  3,
                                        'deleteDiary' =>   3,
                                        'deleteDiaryByadmin' =>   1000,
                                        'deleteCommentByadmin' =>   1000,
                                        'deleteTopic' =>   3, // 话题删除
                                        'deleteTopicByadmin' =>   1000, // 话题删除
                                        'deleteTopicCommentByadmin' =>   1000, // 话题评论被管理员删除
                                        'essenceTopicByadmin' =>   1000, // 话题被管理员设为精华
                                        'forbidUser' =>   1000, // 被封禁减少50%经验
                                        'gagUser1' =>   1000, // 第1次禁言
                                        'gagUser2' =>   1000, // 第2次禁言
                                        'gagUser3' =>   1000, // 第3次禁言
                                        'dayMaxExp' =>  500,     # 用户每日最多获取经验
                                    );/*}}}*/
}

